/*
 * @(#)Configuration.java   09/10/15
 * 
 * Copyright (C) 2009 Ecole des Mines d'Ales
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General 
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General  License for more details.
 *
 * You should have received a copy of the GNU Lesser General 
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 * Contact: yulinz88@gmail.com
 */



package fr.ema.arch3d.model.architecture.configuration;

import java.util.List;

import fr.ema.arch3d.model.architecture.specification.Specification;

//~--- interfaces -------------------------------------------------------------

/**
 * Class description
 *
 *
 * @version 1.0, 09/09/16
 * @author Huaxi (Yulin) ZHANG
 */
 interface Configuration {

    /**
     * Method description
     *
     * @return
     */
    String getName();

    /**
     * Setter of the property <tt>name</tt>
     *
     * @param name
     *            the name of this configuration
     *
     */
     void setName(String name);

     /**
      * Getter of the property <tt>specImpl</tt>
      *
      * @return  the specImpl
      */
      Specification getSpecImpl() ;

     /**
      * Setter of the property <tt>specImpl</tt>
      *
      * @param specImpl  the specImpl to set
      */
      void setSpecImpl(Specification specImpl);

     /**
      * Getter of the property <tt>cmpImpl</tt>
      *
      * @return  the cmpImpl
      */
      List<Object[]> getCmpImpl() ;

     /**
      * Getter of the property <tt>connectorImpl</tt>
      *
      * @return  the connectorImpl
      */
      List<Object[]> getConnectorImpl() ;

     /**
      * Inserts a <code>AbstractComponentClass</code>
      *
      * @param cmpClass  the <code>AbstractComponentClass</code> to add.
      * @param cmpRoleName  the component role name of which the component class implements
      */
      void insertCmpClass(AbstractComponentClass cmpClass, String cmpRoleName) ;

     /**
      * Inserts a <code>AbstractConnectorClass</code>.
      *
      * @param connectorClass  the <code>AbstractConnectorClass</code> to insert
      * @param connectionName  the name of implemented connection of this inserted connector class
      */
      void insertConnectorClass(AbstractConnectorClass connectorClass, String connectionName);

     /**
      * Removes a <code>AbstractComponentClass</code>
      *
      * @param cmpClass  the <code>AbstractComponentClass</code> to remove.
      * @param cmpRoleName  the component role name of which the component class implements
      */
      void removeCmpClass(AbstractComponentClass cmpClass, String cmpRoleName) ;

     /**
      * Removes a <code>AbstractConnectorClass</code>
      *
      * @param connectorClass  the <code>AbstractConnectorClass</code> to remove.
      * @param connectionName  the name of implemented connection of this removed connector class
      */
      void removeConnectorClass(AbstractConnectorClass connectorClass, String connectionName);
}
